<?php

namespace IDock\Insurance\ACIC\Request\NonCar;

use Exception;
use IDock\Insurance\ACIC\Request\AllACICRequest;
use IDock\Insurance\ACIC\Response\NonCar\NonCarEPolicyDownResponse;
use IDock\Insurance\ACIC\Response\UploadFileResponse;

class NonCarEPolicyDownRequest extends AllACICRequest
{
    protected $code = 'A010';

    protected $response = NonCarEPolicyDownResponse::class;

    protected $urlTip = '非车电子保单下载';

    private $policyNo;

    public $noCarApi = true;

    /**
     * @return array
     * @throws Exception
     */
    public function generate(): array
    {

        $data = [
            'PolicyNo' => $this->policyNo
        ];

        return $data;
    }

    public function setPolicyNo($policyNo)
    {
        $this->policyNo = $policyNo;
    }

}
